package com.intel.two.bo.community;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
@ContentRowHeight(20)
@HeadRowHeight(20)
@ColumnWidth(25)
public class SecurityBo {
    @ExcelProperty(value = "保安ID")
    private Integer security_id;   //id
    @ExcelProperty(value = "保安姓名")
    private String security_name;  //姓名
    @ExcelProperty(value = "保安性别")
    private String security_sex;   //性别

    @ExcelProperty(value = "保安生日")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date security_birthday;   //生日
    @ExcelProperty(value = "保安电话")
    private String security_phone;    //电话
    @ExcelProperty(value = "保安地址")
    private String security_address;  //地址
}
